﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
    <meta name="screen-orientation" content="portrait">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/weui.min.css">
    <link rel="stylesheet" href="css/m_ektz.css">
    <title>去答题</title>
</head>
<body>
<div class="content" id="period">
    <img src="images/leizhu/bg.png" alt="星球争霸">
    <div class="star star-item1">
        <img src="images/leizhu/moni.png" alt="模拟挑战">
        <div class="part">
            <img src="images/leizhu/btn_moni.png" alt="模拟挑战">
        </div>
        <span class="lock"></span>
        <span class="opening-date">开放日期：<i class="time-slot"></i></span>
    </div>


    <div class="star star-item2">
        <img src="images/leizhu/leizhu.png" alt="挑战擂主">
        <div class="part">
            <img src="images/leizhu/btn_tiaozhanleizhu.png" alt="挑战擂主">
        </div>
        <span class="lock"></span>
        <span class="opening-date">开放日期：<i class="time-slot"></i></span>
    </div>

    <div class="star star-item3">
        <img src="images/leizhu/jinjileizhu.png" alt="晋级擂主赛">
        <div class="part">
            <img src="images/leizhu/btn_jinjileizhu.png" alt="晋级擂主塞">
        </div>
        <span class="lock"></span>
        <span class="opening-date">开放日期：<i class="time-slot"></i></span>
    </div>


    <div class="star star-item4">
        <img src="images/leizhu/juesai.png" alt="总决赛">
        <div class="part">
            <img src="images/leizhu/btn_zongjuesai.png" alt="总决赛">
        </div>
        <span class="lock"></span>
        <span class="opening-date">开放日期：<i class="time-slot"></i></span>
    </div>

    <div class="rocket step1">
        <img src="images/leizhu/rocket.png" alt="火箭">
    </div>
</div>
<a href="http://ucentertest.winwayworld.com/match/common/wxRoute/zhanbao" class="zhanBao-btn">荣耀战报</a>
</body>
<script src="js/rem.js"></script>
<script src="js/jquery-3.1.1.js"></script>
<script src="js/weui.min.js"></script>
<script src="js/base.js"></script>
<script src="js/m_ektz.js"></script>
<script>
    $(function () {
        PKTZ_API.getSubMatchList();
        $('#period .star').on('click', function () {
            var subMatchId = $(this).data('subMatchId');
            var memberId = PKTZ_API.getCookie('memberId');
            var light = $(this).data('isHightLight');
            if(!light){
                weui.dialog({
                    content: '亲，赛事阶段尚未开放，敬请期待！',
                    className: 'custom-classname',
                    buttons: [{
                        label: '确定',
                        type: 'primary',
                        onClick: function () {}
                    }]
                });
            }else {
                if(!memberId){
                    weui.dialog({
                        content: '您还没登录，请先登录！',
                        className: 'custom-classname',
                        buttons: [{
                            label: '取消',
                            type: 'default',
                            onClick: function () {}
                        }, {
                            label: '确定',
                            type: 'primary',
                            onClick: function () {
                                PKTZ_API.getPageRoute('login');
                            }
                        }]
                    });
                    return
                }
                var param = {
                    memberId: memberId,
                    subMatchId: subMatchId
                };
                document.cookie = 'subMatchId=' + encodeURI(subMatchId);
                PKTZ_API.validationPermission(param);
            }

        })
    })
</script>
</html>